package com.wl.system.controller;

import com.wl.common.core.web.dto.RestResultDTO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: wanglin
 * @date: 2024-03-07 周四
 * @Version: 1.0
 * @Description:
 */
@RestController
@RequestMapping("system")
public class TestController {

    @RequestMapping("user")
    public RestResultDTO<String> user() {
        String userName = "王林-用户";
        return RestResultDTO.newSuccess(userName, "user成功~~~~");
    }

    @RequestMapping("role")
    public RestResultDTO<String> role() {
        String token = "common-用户";
        return RestResultDTO.newSuccess(token, "role成功~~~~");
    }
}